package com.smart.oil.service;

import com.smart.oil.entity.SmPermission;
import com.smart.oil.vo.req.PermissionAddReqVO;
import com.smart.oil.vo.req.PermissionUpdateReqVO;
import com.smart.oil.vo.resp.PermissionRespNodeVO;

import java.util.List;
import java.util.Set;

/**
 * @ClassName: PermissionService
 * TODO:类文件简单描述
 * @Author: 杨鑫鑫
 * @UpdateUser: 杨鑫鑫
 * @Version: 0.0.1
 */
public interface PermissionService {
    List<SmPermission> selectAll();
    List<PermissionRespNodeVO> selectAllMenuByTree();
    SmPermission addPermission(PermissionAddReqVO vo);
    List<PermissionRespNodeVO> permissionTreeList(String userId);
    List<PermissionRespNodeVO> selectAllTree();
    void updatePermission(PermissionUpdateReqVO vo);
    void deletedPermission(String permissionId);
    Set<String> getPermissionsByUserId(String userId);
    List<SmPermission> getPermission(String userId);
}
